package com.liveinstars.gateway.business.service;


import com.liveinstars.gateway.business.entity.AuthSecretDTO;

/**
 * @author: ting
 * @date: 2019-08-05
 */
public interface AuthService {

    /**
     * 签名校验
     * @param sign
     * @return
     * @throws Exception
     */
    boolean validateSign(String sign, Integer version) throws Exception;

    /**
     *
     * @param appId
     * @param version
     * @return
     */
    AuthSecretDTO getByAppIdAndType(Long appId, Integer version);

    /**
     *
     * @param appId
     * @return
     */
    AuthSecretDTO getNewAuthSecret(Long appId);
}
